using Boo.Lang;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using UnityEngine;

[Serializable]
public class @base : MonoBehaviour
{
	[Serializable]
	[CompilerGenerated]
	internal sealed class _0024find_0024269 : GenericGenerator<WaitForSeconds>
	{
		internal @base _0024self__0024271;

		public _0024find_0024269(@base self_)
		{
			_0024self__0024271 = self_;
		}

		public override IEnumerator<WaitForSeconds> GetEnumerator()
		{
			return new _0024(_0024self__0024271);
		}
	}

	public bool leftarrow;

	public AudioClip clip;

	public ddload ddload;

	public GameObject bsbase;

	public GameObject bkbase;

	public GameObject dcsbase;

	public GameObject dgsbase;

	public GameObject dfbase;

	public GameObject kdbase;

	public GameObject mdbase;

	public GameObject wbbase;

	public GameObject tgbase;

	public GameObject flbase;

	public GameObject abbase;

	public GameObject btbase;

	public GameObject sbbase;

	public GameObject kidbase;

	public GameObject wabase;

	public int state;

	public Texture pressed;

	public Texture unpressed;

	private GUITexture gui;

	public @base()
	{
		state = 1;
	}

	public void Start()
	{
		gui = gameObject.GetComponent<GUITexture>();
		StartCoroutine(find());
	}

	public void Update()
	{
		if ((bool)ddload)
		{
			ddload.basestate = state;
		}
		if (state == 0)
		{
			state = 15;
			change();
		}
		if (state == -1)
		{
			state = 15;
			change();
		}
		if (state == 16)
		{
			state = 1;
			change();
		}
		if (UnityEngine.Input.touchCount == 0)
		{
			gui.texture = unpressed;
		}
		if (UnityEngine.Input.touchCount <= 0)
		{
			return;
		}
		Touch touch = Input.touches[0];
		if (touch.phase != 0 || !GetComponent<GUITexture>().HitTest(touch.position))
		{
			return;
		}
		leftarrow = false;
		AudioSource.PlayClipAtPoint(clip, Camera.main.transform.position);
		gui.texture = pressed;
		state++;
		change();
		ddload.basestate = state;
		if (state == 1)
		{
			if (PlayerPrefs.GetInt("KDbase") == 0)
			{
				state = 2;
			}
			if (PlayerPrefs.GetInt("KDbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 1);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = true;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 2)
		{
			if (PlayerPrefs.GetInt("BSbase") == 0)
			{
				state = 3;
			}
			if (PlayerPrefs.GetInt("BSbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 2);
				bsbase.active = true;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 3)
		{
			if (PlayerPrefs.GetInt("BKbase") == 0)
			{
				state = 4;
			}
			if (PlayerPrefs.GetInt("BKbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 3);
				bsbase.active = false;
				bkbase.active = true;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 4)
		{
			if (PlayerPrefs.GetInt("DcSbase") == 0)
			{
				state = 5;
			}
			if (PlayerPrefs.GetInt("DcSbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 4);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = true;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 5)
		{
			if (PlayerPrefs.GetInt("DgSbase") == 0)
			{
				state = 6;
			}
			if (PlayerPrefs.GetInt("DgSbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 5);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = true;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 6)
		{
			if (PlayerPrefs.GetInt("DFbase") == 0)
			{
				state = 7;
			}
			if (PlayerPrefs.GetInt("DFbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 6);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = true;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 7)
		{
			if (PlayerPrefs.GetInt("MDbase") == 0)
			{
				state = 8;
			}
			if (PlayerPrefs.GetInt("MDbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 7);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = true;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 8)
		{
			if (PlayerPrefs.GetInt("WBbase") == 0)
			{
				state = 9;
			}
			if (PlayerPrefs.GetInt("WBbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 8);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = true;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 9)
		{
			if (PlayerPrefs.GetInt("TGbase") == 0)
			{
				state = 10;
			}
			if (PlayerPrefs.GetInt("TGbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 9);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = true;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 10)
		{
			if (PlayerPrefs.GetInt("FLbase") == 0)
			{
				state = 11;
			}
			if (PlayerPrefs.GetInt("FLbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 10);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = true;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 11)
		{
			if (PlayerPrefs.GetInt("ABbase") == 0)
			{
				state = 12;
			}
			if (PlayerPrefs.GetInt("ABbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 11);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = true;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 12)
		{
			if (PlayerPrefs.GetInt("BTbase") == 0)
			{
				state = 13;
			}
			if (PlayerPrefs.GetInt("BTbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 12);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = true;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 13)
		{
			if (PlayerPrefs.GetInt("SBbase") == 0)
			{
				state = 14;
			}
			if (PlayerPrefs.GetInt("SBbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 13);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = true;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 14)
		{
			if (PlayerPrefs.GetInt("KiDbase") == 0)
			{
				state = 15;
			}
			if (PlayerPrefs.GetInt("KiDbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 14);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = true;
				wabase.active = false;
			}
		}
		if (state == 15)
		{
			if (PlayerPrefs.GetInt("WAbase") == 0)
			{
				state = 1;
			}
			if (PlayerPrefs.GetInt("WAbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 15);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = true;
			}
		}
	}

	public void change()
	{
		if (!leftarrow)
		{
			if (state == 1)
			{
				if (PlayerPrefs.GetInt("KDbase") == 0)
				{
					state = 2;
				}
				if (PlayerPrefs.GetInt("KDbase") == 1)
				{
					PlayerPrefs.SetInt("BaseState", 1);
					bsbase.active = false;
					bkbase.active = false;
					dcsbase.active = false;
					dgsbase.active = false;
					dfbase.active = false;
					kdbase.active = true;
					mdbase.active = false;
					wbbase.active = false;
					tgbase.active = false;
					flbase.active = false;
					abbase.active = false;
					btbase.active = false;
					sbbase.active = false;
					kidbase.active = false;
					wabase.active = false;
				}
			}
			if (state == 2)
			{
				if (PlayerPrefs.GetInt("BSbase") == 0)
				{
					state = 3;
				}
				if (PlayerPrefs.GetInt("BSbase") == 1)
				{
					PlayerPrefs.SetInt("BaseState", 2);
					bsbase.active = true;
					bkbase.active = false;
					dcsbase.active = false;
					dgsbase.active = false;
					dfbase.active = false;
					kdbase.active = false;
					mdbase.active = false;
					wbbase.active = false;
					tgbase.active = false;
					flbase.active = false;
					abbase.active = false;
					btbase.active = false;
					sbbase.active = false;
					kidbase.active = false;
					wabase.active = false;
				}
			}
			if (state == 3)
			{
				if (PlayerPrefs.GetInt("BKbase") == 0)
				{
					state = 4;
				}
				if (PlayerPrefs.GetInt("BKbase") == 1)
				{
					PlayerPrefs.SetInt("BaseState", 3);
					bsbase.active = false;
					bkbase.active = true;
					dcsbase.active = false;
					dgsbase.active = false;
					dfbase.active = false;
					kdbase.active = false;
					mdbase.active = false;
					wbbase.active = false;
					tgbase.active = false;
					flbase.active = false;
					abbase.active = false;
					btbase.active = false;
					sbbase.active = false;
					kidbase.active = false;
					wabase.active = false;
				}
			}
			if (state == 4)
			{
				if (PlayerPrefs.GetInt("DcSbase") == 0)
				{
					state = 5;
				}
				if (PlayerPrefs.GetInt("DcSbase") == 1)
				{
					PlayerPrefs.SetInt("BaseState", 4);
					bsbase.active = false;
					bkbase.active = false;
					dcsbase.active = true;
					dgsbase.active = false;
					dfbase.active = false;
					kdbase.active = false;
					mdbase.active = false;
					wbbase.active = false;
					tgbase.active = false;
					flbase.active = false;
					abbase.active = false;
					btbase.active = false;
					sbbase.active = false;
					kidbase.active = false;
					wabase.active = false;
				}
			}
			if (state == 5)
			{
				if (PlayerPrefs.GetInt("DgSbase") == 0)
				{
					state = 6;
				}
				if (PlayerPrefs.GetInt("DgSbase") == 1)
				{
					PlayerPrefs.SetInt("BaseState", 5);
					bsbase.active = false;
					bkbase.active = false;
					dcsbase.active = false;
					dgsbase.active = true;
					dfbase.active = false;
					kdbase.active = false;
					mdbase.active = false;
					wbbase.active = false;
					tgbase.active = false;
					flbase.active = false;
					abbase.active = false;
					btbase.active = false;
					sbbase.active = false;
					kidbase.active = false;
					wabase.active = false;
				}
			}
			if (state == 6)
			{
				if (PlayerPrefs.GetInt("DFbase") == 0)
				{
					state = 7;
				}
				if (PlayerPrefs.GetInt("DFbase") == 1)
				{
					PlayerPrefs.SetInt("BaseState", 6);
					bsbase.active = false;
					bkbase.active = false;
					dcsbase.active = false;
					dgsbase.active = false;
					dfbase.active = true;
					kdbase.active = false;
					mdbase.active = false;
					wbbase.active = false;
					tgbase.active = false;
					flbase.active = false;
					abbase.active = false;
					btbase.active = false;
					sbbase.active = false;
					kidbase.active = false;
					wabase.active = false;
				}
			}
			if (state == 7)
			{
				if (PlayerPrefs.GetInt("MDbase") == 0)
				{
					state = 8;
				}
				if (PlayerPrefs.GetInt("MDbase") == 1)
				{
					PlayerPrefs.SetInt("BaseState", 7);
					bsbase.active = false;
					bkbase.active = false;
					dcsbase.active = false;
					dgsbase.active = false;
					dfbase.active = false;
					kdbase.active = false;
					mdbase.active = true;
					wbbase.active = false;
					tgbase.active = false;
					flbase.active = false;
					abbase.active = false;
					btbase.active = false;
					sbbase.active = false;
					kidbase.active = false;
				}
			}
			if (state == 8)
			{
				if (PlayerPrefs.GetInt("WBbase") == 0)
				{
					state = 9;
				}
				if (PlayerPrefs.GetInt("WBbase") == 1)
				{
					PlayerPrefs.SetInt("BaseState", 8);
					bsbase.active = false;
					bkbase.active = false;
					dcsbase.active = false;
					dgsbase.active = false;
					dfbase.active = false;
					kdbase.active = false;
					mdbase.active = false;
					wbbase.active = true;
					tgbase.active = false;
					flbase.active = false;
					abbase.active = false;
					btbase.active = false;
					sbbase.active = false;
					kidbase.active = false;
				}
			}
			if (state == 9)
			{
				if (PlayerPrefs.GetInt("TGbase") == 0)
				{
					state = 10;
				}
				if (PlayerPrefs.GetInt("TGbase") == 1)
				{
					PlayerPrefs.SetInt("BaseState", 9);
					bsbase.active = false;
					bkbase.active = false;
					dcsbase.active = false;
					dgsbase.active = false;
					dfbase.active = false;
					kdbase.active = false;
					mdbase.active = false;
					wbbase.active = false;
					tgbase.active = true;
					flbase.active = false;
					abbase.active = false;
					btbase.active = false;
					sbbase.active = false;
					kidbase.active = false;
					wabase.active = false;
				}
			}
			if (state == 10)
			{
				if (PlayerPrefs.GetInt("FLbase") == 0)
				{
					state = 11;
				}
				if (PlayerPrefs.GetInt("FLbase") == 1)
				{
					PlayerPrefs.SetInt("BaseState", 10);
					bsbase.active = false;
					bkbase.active = false;
					dcsbase.active = false;
					dgsbase.active = false;
					dfbase.active = false;
					kdbase.active = false;
					mdbase.active = false;
					wbbase.active = false;
					tgbase.active = false;
					flbase.active = true;
					abbase.active = false;
					btbase.active = false;
					sbbase.active = false;
					kidbase.active = false;
					wabase.active = false;
				}
			}
			if (state == 11)
			{
				if (PlayerPrefs.GetInt("ABbase") == 0)
				{
					state = 12;
				}
				if (PlayerPrefs.GetInt("ABbase") == 1)
				{
					PlayerPrefs.SetInt("BaseState", 11);
					bsbase.active = false;
					bkbase.active = false;
					dcsbase.active = false;
					dgsbase.active = false;
					dfbase.active = false;
					kdbase.active = false;
					mdbase.active = false;
					wbbase.active = false;
					tgbase.active = false;
					flbase.active = false;
					abbase.active = true;
					btbase.active = false;
					sbbase.active = false;
					kidbase.active = false;
					wabase.active = false;
				}
			}
			if (state == 12)
			{
				if (PlayerPrefs.GetInt("BTbase") == 0)
				{
					state = 13;
				}
				if (PlayerPrefs.GetInt("BTbase") == 1)
				{
					PlayerPrefs.SetInt("BaseState", 12);
					bsbase.active = false;
					bkbase.active = false;
					dcsbase.active = false;
					dgsbase.active = false;
					dfbase.active = false;
					kdbase.active = false;
					mdbase.active = false;
					wbbase.active = false;
					tgbase.active = false;
					flbase.active = false;
					abbase.active = false;
					btbase.active = true;
					sbbase.active = false;
					kidbase.active = false;
					wabase.active = false;
				}
			}
			if (state == 13)
			{
				if (PlayerPrefs.GetInt("SBbase") == 0)
				{
					state = 14;
				}
				if (PlayerPrefs.GetInt("SBbase") == 1)
				{
					PlayerPrefs.SetInt("BaseState", 13);
					bsbase.active = false;
					bkbase.active = false;
					dcsbase.active = false;
					dgsbase.active = false;
					dfbase.active = false;
					kdbase.active = false;
					mdbase.active = false;
					wbbase.active = false;
					tgbase.active = false;
					flbase.active = false;
					abbase.active = false;
					btbase.active = false;
					sbbase.active = true;
					kidbase.active = false;
					wabase.active = false;
				}
			}
			if (state == 14)
			{
				if (PlayerPrefs.GetInt("KiDbase") == 0)
				{
					state = 15;
				}
				if (PlayerPrefs.GetInt("KiDbase") == 1)
				{
					PlayerPrefs.SetInt("BaseState", 14);
					bsbase.active = false;
					bkbase.active = false;
					dcsbase.active = false;
					dgsbase.active = false;
					dfbase.active = false;
					kdbase.active = false;
					mdbase.active = false;
					wbbase.active = false;
					tgbase.active = false;
					flbase.active = false;
					abbase.active = false;
					btbase.active = false;
					sbbase.active = false;
					kidbase.active = true;
					wabase.active = false;
				}
			}
			if (state == 15)
			{
				if (PlayerPrefs.GetInt("WAbase") == 0)
				{
					state = 1;
				}
				if (PlayerPrefs.GetInt("WAbase") == 1)
				{
					PlayerPrefs.SetInt("BaseState", 15);
					bsbase.active = false;
					bkbase.active = false;
					dcsbase.active = false;
					dgsbase.active = false;
					dfbase.active = false;
					kdbase.active = false;
					mdbase.active = false;
					wbbase.active = false;
					tgbase.active = false;
					flbase.active = false;
					abbase.active = false;
					btbase.active = false;
					sbbase.active = false;
					kidbase.active = false;
					wabase.active = true;
				}
			}
		}
		if (!leftarrow)
		{
			return;
		}
		if (state == 1)
		{
			if (PlayerPrefs.GetInt("KDbase") == 0)
			{
				state = 15;
			}
			if (PlayerPrefs.GetInt("KDbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 1);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = true;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 2)
		{
			if (PlayerPrefs.GetInt("BSbase") == 0)
			{
				state = 1;
			}
			if (PlayerPrefs.GetInt("BSbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 2);
				bsbase.active = true;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 3)
		{
			if (PlayerPrefs.GetInt("BKbase") == 0)
			{
				state = 2;
			}
			if (PlayerPrefs.GetInt("BKbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 3);
				bsbase.active = false;
				bkbase.active = true;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 4)
		{
			if (PlayerPrefs.GetInt("DcSbase") == 0)
			{
				state = 3;
			}
			if (PlayerPrefs.GetInt("DcSbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 4);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = true;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 5)
		{
			if (PlayerPrefs.GetInt("DgSbase") == 0)
			{
				state = 4;
			}
			if (PlayerPrefs.GetInt("DgSbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 5);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = true;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 6)
		{
			if (PlayerPrefs.GetInt("DFbase") == 0)
			{
				state = 5;
			}
			if (PlayerPrefs.GetInt("DFbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 6);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = true;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 7)
		{
			if (PlayerPrefs.GetInt("MDbase") == 0)
			{
				state = 6;
			}
			if (PlayerPrefs.GetInt("MDbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 7);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = true;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 8)
		{
			if (PlayerPrefs.GetInt("WBbase") == 0)
			{
				state = 7;
			}
			if (PlayerPrefs.GetInt("WBbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 8);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = true;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 9)
		{
			if (PlayerPrefs.GetInt("TGbase") == 0)
			{
				state = 8;
			}
			if (PlayerPrefs.GetInt("TGbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 9);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = true;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 10)
		{
			if (PlayerPrefs.GetInt("FLbase") == 0)
			{
				state = 9;
			}
			if (PlayerPrefs.GetInt("FLbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 10);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = true;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 11)
		{
			if (PlayerPrefs.GetInt("ABbase") == 0)
			{
				state = 10;
			}
			if (PlayerPrefs.GetInt("ABbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 11);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = true;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 12)
		{
			if (PlayerPrefs.GetInt("BTbase") == 0)
			{
				state = 11;
			}
			if (PlayerPrefs.GetInt("BTbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 12);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = true;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 13)
		{
			if (PlayerPrefs.GetInt("SBbase") == 0)
			{
				state = 12;
			}
			if (PlayerPrefs.GetInt("SBbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 13);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = true;
				kidbase.active = false;
				wabase.active = false;
			}
		}
		if (state == 14)
		{
			if (PlayerPrefs.GetInt("KiDbase") == 0)
			{
				state = 13;
			}
			if (PlayerPrefs.GetInt("KiDbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 14);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = true;
				wabase.active = false;
			}
		}
		if (state == 15)
		{
			if (PlayerPrefs.GetInt("WAbase") == 0)
			{
				state = 14;
			}
			if (PlayerPrefs.GetInt("WAbase") == 1)
			{
				PlayerPrefs.SetInt("BaseState", 15);
				bsbase.active = false;
				bkbase.active = false;
				dcsbase.active = false;
				dgsbase.active = false;
				dfbase.active = false;
				kdbase.active = false;
				mdbase.active = false;
				wbbase.active = false;
				tgbase.active = false;
				flbase.active = false;
				abbase.active = false;
				btbase.active = false;
				sbbase.active = false;
				kidbase.active = false;
				wabase.active = true;
			}
		}
	}

	public IEnumerator find()
	{
		return new _0024find_0024269(this).GetEnumerator();
	}

	public void Main()
	{
	}
}
